package com.cskaoyan.javase.oop2._1extends._3protected._1one;

/**
 * @description: 类的成员的访问权限修饰符
 * @author: wuguidong@cskaoyan.onaliyun.com
 **/

/**
 * 补充讲解protected:
 *      1.在同包可以任意访问(不论是不是子类)
 *      2.在不同包下,必须在子类中才能够访问
 *
 *
 */
public class CurrentClazz {
    protected int protectedVar;

    public static void main(String[] args) {
        CurrentClazz cc = new CurrentClazz();
        System.out.println(cc.protectedVar);
    }
}
